package top.chengdongqing.mishop.media.video

import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

@RestController
@RequestMapping("/videos")
class VideoController(
    private val videoService: VideoService
) {

    @GetMapping
    fun findVideos(limits: Int?): List<VideoVO> {
        return videoService.findVideos(limits)
    }
}